home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Software of the Month Club / Amiga Latest & Greatest Volume 225 (1995)(SOMC)(Disk 2 of y)[SMCxxxC30Ix].zip / Amiga Latest & Greatest Volume 225 (1995)(SOMC)(Disk 2 of y)[SMCxxxC30Ix].adf / everydayorganiser / Install_EO < prev    next >
Text File  |  1996-03-26  |  5KB  |  267 lines

  1. ; ****************************************
  2. ; *** $VER: Install_EO V1.10 (18.3.96) ***
  3. ; *** Copyright ©1996 by Mathew Wilson ***
  4. ; ****************************************
  5.  
  6. ; * Script Version 1.10 *
  7. ; - Now copies the Introduction.guide to the Installation drawer.
  8. ; - Changes tooltypes on Alarmist, Locate, On-Time and Tasker in
  9. ;   reference to ARexx scripts.
  10.  
  11. ; * Script Version 1.00 *
  12. ; Original Release.
  13.  
  14. ; ----------------------------------------
  15.  
  16. (complete 0)
  17.  
  18. ; *** Introduction ***
  19.  
  20. ; get source root dir
  21. (set path (pathonly @icon))
  22.  
  23. (welcome)
  24.  
  25. (message "\n"
  26.     "Everyday Organiser v1.10 ©1996 by Mathew Wilson\n\n"
  27.     "All the programs in this archive are\n"
  28.     "classified as FreeWare.\n\n"
  29.     "You *must* have at least MUI version 3.3 installed\n"
  30.     "to operate most of these programs!\n"
  31.     "---------------------------------------------------"
  32. )
  33.  
  34. ; ** Installation Preparation ***
  35.  
  36. (welcome)
  37.  
  38. (set destination
  39.    (askdir
  40.       (prompt "Where would you like the applications to be installed?\n(A new directory called EverydayOrganiser will be created there.)\nUpdates will OVERWRITE the old programs!")
  41.       (help   "This is where the EO programs will be copied to.\n\n"@askdir-help)
  42.       (default "SYS:Utilities")
  43.    )
  44. )
  45.  
  46. (set root-dest destination)
  47. (set @default-dest destination)
  48.  
  49. (set destination (tackon destination "EverydayOrganiser"))
  50.  
  51. (set @default-dest destination)
  52.  
  53. (copylib
  54.    (source "libs/everyday.library")
  55.    (dest "LIBS:")
  56. )
  57.  
  58. (complete 10)
  59.  
  60. (copyfiles
  61.    (help @copyfiles-help)
  62.    (source "EverydayOrganiser/")
  63.    (dest destination)
  64.    (all)
  65.    (infos)
  66. )
  67.  
  68. (complete 20)
  69.  
  70. (copyfiles
  71.    (source "EverydayOrganiser.info")
  72.    (dest root-dest)
  73. )
  74.  
  75. (complete 30)
  76.  
  77. ; ** Modify Main Program tooltypes so that some ARexx scripts can be found **
  78.  
  79. (tooltype
  80.     (dest (tackon destination "Locate"))
  81.     (settooltype "DROP_SCRIPT" (tackon destination "rexx/Locate_DropObj.rexx"))
  82. )
  83.  
  84. (tooltype
  85.     (dest (tackon destination "OnTime"))
  86.     (settooltype "DROP_SCRIPT" (tackon destination "rexx/OnTime_DropObj.rexx"))
  87. )
  88.  
  89. (tooltype
  90.     (dest (tackon destination "Alarmist"))
  91.     (settooltype "DROP_SCRIPT" (tackon destination "rexx/Alarmist_DropObj.rexx"))
  92. )
  93.  
  94. (tooltype
  95.     (dest (tackon destination "Alarmist"))
  96.     (settooltype "CHIME_EXEC" (tackon destination "rexx/Alarmist_Chime.rexx"))
  97. )
  98.  
  99. (tooltype
  100.     (dest (tackon destination "Alarmist"))
  101.     (settooltype "WARN_EXEC" (tackon destination "rexx/Alarmist_Warn.rexx"))
  102. )
  103.  
  104. (tooltype
  105.     (dest (tackon destination "Tasker"))
  106.     (settooltype "DROP_SCRIPT" (tackon destination "rexx/Tasker_DropObj.rexx"))
  107. )
  108.  
  109. (complete 40)
  110.  
  111. ; ** Copy Alarmist into WBStartup ? **
  112.  
  113. (if
  114.    (> @user-level 1)
  115.    
  116.    (set choice (askbool
  117.       (help @askbool-help)
  118.       (prompt "Would you like Alarmist copied to your "
  119.             "SYS:WBStartup drawer?\n\nThis is recommended!")
  120.       (default 1))
  121.    )
  122.    
  123.    (set choice 1)
  124. )
  125.  
  126. (if
  127.     (= choice 1)
  128.     
  129.     (copyfiles
  130.       (source destination)
  131.       (dest "SYS:WBStartup/")
  132.       (choices "Alarmist" "Alarmist.info" "Alarmist_World.data")
  133.       (files)
  134.    )
  135. )
  136.  
  137. ; ** Copy the AmigaGuides to the Locale:help/english drawer **
  138.  
  139. (if
  140.    (> @user-level 1)
  141.  
  142.    (set choice (askbool
  143.       (help @askbool-help)
  144.       (prompt "Would you like the AmigaGuides for the main programs "
  145.               "copied to Locale:help?\n\nThis is recommended!")
  146.       (default 1))
  147.    )
  148.    
  149.    (set choice 1)
  150. )
  151.  
  152. (if
  153.    (= choice 1)
  154.  
  155.    (copyfiles
  156.       (source "EverydayOrganiser/")
  157.       (dest "Locale:help/english")
  158.       (pattern "#?.guide")
  159.       (files)
  160.    )
  161. )
  162.  
  163. (complete 50)
  164.  
  165. ; ** Copy some of the extra programs to different places **
  166.  
  167. (set choice
  168.    (askoptions
  169.       (prompt "The extra programs are in the Extras drawer\n"
  170.               "but they should be copied to their normal drawers\n\n"
  171.               "Please choose which of the following to copy.")
  172.       (choices "TimePrefs (destination SYS:Prefs)" "Talk      (destination C:)" "Sam       (destination C:)" "Coder     (destination C:)")
  173.       (help @askoptions-help)
  174.    )
  175. )
  176.  
  177. ; ** copy TimePrefs **
  178. (if
  179.    (<> 0 (BITAND choice 1))
  180.    (
  181.       (copyfiles
  182.          (source "EverydayOrganiser/Extras/TimePrefs")
  183.          (dest "sys:prefs")
  184.          (infos)
  185.       )
  186.       
  187.       (delete (tackon destination "Extras/TimePrefs"))
  188.       (delete (tackon destination "Extras/TimePrefs.info"))
  189.    )
  190. )
  191.  
  192. (complete 60)
  193.  
  194. ; ** copy Talk? **
  195. (if
  196.    (<> 0 (BITAND choice 2))
  197.    (
  198.       (copyfiles
  199.          (source "EverydayOrganiser/Extras/Talk")
  200.          (dest "C:")
  201.       )
  202.    )
  203. )
  204.  
  205. (complete 75)
  206.  
  207. ; ** Copy Talk defaults file to s: **
  208. (copyfiles
  209.     (source "EverydayOrganiser/Extras/Talk_Defaults")
  210.     (dest "s:")
  211. )
  212.  
  213.  
  214.  
  215. ; ** copy Sam? **
  216. (if
  217.    (<> 0 (BITAND choice 4))
  218.    (
  219.       (copyfiles
  220.          (source "EverydayOrganiser/Extras/Sam")
  221.          (dest "C:")
  222.       )
  223.    )
  224. )
  225.  
  226. (complete 80)
  227.  
  228. ; ** copy Coder? **
  229. (if
  230.    (<> 0 (BITAND choice 8))
  231.    (
  232.       (copyfiles
  233.          (source "EverydayOrganiser/Extras/Coder")
  234.          (dest "C:")
  235.       )
  236.    )
  237. )
  238.  
  239. (complete 90)
  240.  
  241. ; ** Copy the Introduction.Guide to the installation drawer **
  242. (set intro_doc (tackon path "Introduction.guide"))
  243.  
  244. (copyfiles
  245.     (source intro_doc)
  246.     (dest destination)
  247.     (infos)
  248. )
  249.  
  250. (set intro_doc (tackon destination "Introduction.guide"))
  251.  
  252. (tooltype
  253.     (dest intro_doc)
  254.     (noposition)
  255. )
  256.  
  257. (complete 100)
  258.  
  259. (transcript "\nEveryday Organiser installed to "destination"\n")
  260.  
  261. ; ** Let's annoy the user with the Intro doc :) **
  262. (run "sys:utilities/multiview" ("\"%s\"" intro_doc) (safe))
  263.  
  264. (debug file)
  265.  
  266. (exit "I hope you find Everyday Organiser useful.\n")
  267.